<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>OrbbecSDK: /root/libobsensor/include/libobsensor/h/RecordPlayback.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="orbbec_icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OrbbecSDK
   &#160;<span id="projectnumber">1.8.3</span>
   </div>
   <div id="projectbrief">OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_8195f5c0d9a800b311ff87242d342361.html">libobsensor</a></li><li class="navelem"><a class="el" href="dir_9fda3634bd985c8b3aac4c1dd5078468.html">h</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">RecordPlayback.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="RecordPlayback_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ObTypes_8h.html">ObTypes.h</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<a class="code" href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a> *<a class="code" href="RecordPlayback_8h.html#a5c0300370dbece8861b1c15a54dfdaf7">ob_create_recorder</a>(<a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<a class="code" href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a> *<a class="code" href="RecordPlayback_8h.html#acec4fa0d97291a52024ecf6950343a7b">ob_create_recorder_with_device</a>(<a class="code" href="ObTypes_8h.html#a3c87c98acfd9b143bb58c731d95fa437">ob_device</a> *dev, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#ada8198e5864c0e04f4ae0af7c8271aae">ob_delete_recorder</a>(<a class="code" href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a> *recorder, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#a66007cf428a258c2de217e9379984d34">ob_recorder_start</a>(<a class="code" href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a> *recorder, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">bool</span> async, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#a541028e725b8e68a47a5f54f350d3343">ob_recorder_stop</a>(<a class="code" href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a> *recorder, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#a5fd02c1a5488a0398126450998de621c">ob_recorder_write_frame</a>(<a class="code" href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a> *recorder, <a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *<a class="code" href="RecordPlayback_8h.html#a89e0b3fb862c808a003f57d2295e50a9">ob_create_playback</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#a29190427d09445093390a9c5b3bc415f">ob_delete_playback</a>(<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *playback, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#a12eddd62773793def56ce46313e7b92e">ob_playback_start</a>(<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *playback, <a class="code" href="ObTypes_8h.html#a1470dbad9f19b34bd74a55d1e7ecdacc">ob_playback_callback</a> callback, <span class="keywordtype">void</span> *user_data, <a class="code" href="ObTypes_8h.html#aa18ddc89475052284ca5a21292e1229c">ob_media_type</a> type, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#ac8744ae2674412005818b973fe390d1e">ob_playback_stop</a>(<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *playback, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="keywordtype">void</span> <a class="code" href="RecordPlayback_8h.html#a30e23b32950de33d7ae2333abbeb3126">ob_set_playback_state_callback</a>(<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *playback, <a class="code" href="ObTypes_8h.html#add32a1f63591525a2574ea6fe97abb28">ob_media_state_callback</a> callback, <span class="keywordtype">void</span> *user_data, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<a class="code" href="ObTypes_8h.html#a42a8c24d730235cd52687cda4372f0d9">ob_device_info</a> *<a class="code" href="RecordPlayback_8h.html#a0618cea4c4964f0f438610cb585453d4">ob_playback_get_device_info</a>(<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *playback, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<a class="code" href="structOBCameraParam.html">ob_camera_param</a> <a class="code" href="RecordPlayback_8h.html#ae96fc83f8c2d7578c8f72048f55b1875">ob_playback_get_camera_param</a>(<a class="code" href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a> *playback, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="ObTypes_8h_html_a1470dbad9f19b34bd74a55d1e7ecdacc"><div class="ttname"><a href="ObTypes_8h.html#a1470dbad9f19b34bd74a55d1e7ecdacc">ob_playback_callback</a></div><div class="ttdeci">#define ob_playback_callback</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l01289">ObTypes.h:1289</a></div></div>
<div class="ttc" id="RecordPlayback_8h_html_a89e0b3fb862c808a003f57d2295e50a9"><div class="ttname"><a href="RecordPlayback_8h.html#a89e0b3fb862c808a003f57d2295e50a9">ob_create_playback</a></div><div class="ttdeci">ob_playback * ob_create_playback(const char *filename, ob_error **error)</div><div class="ttdoc">Create a playback object. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_ac8744ae2674412005818b973fe390d1e"><div class="ttname"><a href="RecordPlayback_8h.html#ac8744ae2674412005818b973fe390d1e">ob_playback_stop</a></div><div class="ttdeci">void ob_playback_stop(ob_playback *playback, ob_error **error)</div><div class="ttdoc">Stop playback. </div></div>
<div class="ttc" id="ObTypes_8h_html_a246245d747c851b57373f7b5d97eb396"><div class="ttname"><a href="ObTypes_8h.html#a246245d747c851b57373f7b5d97eb396">ob_playback</a></div><div class="ttdeci">struct PlaybackImpl ob_playback</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00068">ObTypes.h:68</a></div></div>
<div class="ttc" id="ObTypes_8h_html_aa18ddc89475052284ca5a21292e1229c"><div class="ttname"><a href="ObTypes_8h.html#aa18ddc89475052284ca5a21292e1229c">ob_media_type</a></div><div class="ttdeci">enum OBMediaType ob_media_type</div></div>
<div class="ttc" id="RecordPlayback_8h_html_a30e23b32950de33d7ae2333abbeb3126"><div class="ttname"><a href="RecordPlayback_8h.html#a30e23b32950de33d7ae2333abbeb3126">ob_set_playback_state_callback</a></div><div class="ttdeci">void ob_set_playback_state_callback(ob_playback *playback, ob_media_state_callback callback, void *user_data, ob_error **error)</div><div class="ttdoc">Set the playback state. </div></div>
<div class="ttc" id="ObTypes_8h_html"><div class="ttname"><a href="ObTypes_8h.html">ObTypes.h</a></div><div class="ttdoc">Provide structs commonly used in the SDK, enumerating constant definitions. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_ae96fc83f8c2d7578c8f72048f55b1875"><div class="ttname"><a href="RecordPlayback_8h.html#ae96fc83f8c2d7578c8f72048f55b1875">ob_playback_get_camera_param</a></div><div class="ttdeci">ob_camera_param ob_playback_get_camera_param(ob_playback *playback, ob_error **error)</div><div class="ttdoc">Get the intrinsic and extrinsic parameter information in the recording file. </div></div>
<div class="ttc" id="ObTypes_8h_html_a94a2bc903de84297c69928e6fa1da8b1"><div class="ttname"><a href="ObTypes_8h.html#a94a2bc903de84297c69928e6fa1da8b1">ob_recorder</a></div><div class="ttdeci">struct RecorderImpl ob_recorder</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00067">ObTypes.h:67</a></div></div>
<div class="ttc" id="ObTypes_8h_html_a3c87c98acfd9b143bb58c731d95fa437"><div class="ttname"><a href="ObTypes_8h.html#a3c87c98acfd9b143bb58c731d95fa437">ob_device</a></div><div class="ttdeci">struct DeviceImpl ob_device</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00055">ObTypes.h:55</a></div></div>
<div class="ttc" id="RecordPlayback_8h_html_a5fd02c1a5488a0398126450998de621c"><div class="ttname"><a href="RecordPlayback_8h.html#a5fd02c1a5488a0398126450998de621c">ob_recorder_write_frame</a></div><div class="ttdeci">void ob_recorder_write_frame(ob_recorder *recorder, ob_frame *frame, ob_error **error)</div><div class="ttdoc">Write frame data to the recorder. </div></div>
<div class="ttc" id="structOBCameraParam_html"><div class="ttname"><a href="structOBCameraParam.html">OBCameraParam</a></div><div class="ttdoc">Structure for camera parameters. </div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00375">ObTypes.h:375</a></div></div>
<div class="ttc" id="RecordPlayback_8h_html_a66007cf428a258c2de217e9379984d34"><div class="ttname"><a href="RecordPlayback_8h.html#a66007cf428a258c2de217e9379984d34">ob_recorder_start</a></div><div class="ttdeci">void ob_recorder_start(ob_recorder *recorder, const char *filename, bool async, ob_error **error)</div><div class="ttdoc">Start recording. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_a29190427d09445093390a9c5b3bc415f"><div class="ttname"><a href="RecordPlayback_8h.html#a29190427d09445093390a9c5b3bc415f">ob_delete_playback</a></div><div class="ttdeci">void ob_delete_playback(ob_playback *playback, ob_error **error)</div><div class="ttdoc">Delete the playback object. </div></div>
<div class="ttc" id="ObTypes_8h_html_a42a8c24d730235cd52687cda4372f0d9"><div class="ttname"><a href="ObTypes_8h.html#a42a8c24d730235cd52687cda4372f0d9">ob_device_info</a></div><div class="ttdeci">struct DeviceInfoImpl ob_device_info</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00056">ObTypes.h:56</a></div></div>
<div class="ttc" id="ObTypes_8h_html_a2d32dd7fcbb88ebb408e9f9081e6f896"><div class="ttname"><a href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a></div><div class="ttdeci">struct CFrameImpl ob_frame</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00063">ObTypes.h:63</a></div></div>
<div class="ttc" id="RecordPlayback_8h_html_ada8198e5864c0e04f4ae0af7c8271aae"><div class="ttname"><a href="RecordPlayback_8h.html#ada8198e5864c0e04f4ae0af7c8271aae">ob_delete_recorder</a></div><div class="ttdeci">void ob_delete_recorder(ob_recorder *recorder, ob_error **error)</div><div class="ttdoc">Delete the recorder object. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_a12eddd62773793def56ce46313e7b92e"><div class="ttname"><a href="RecordPlayback_8h.html#a12eddd62773793def56ce46313e7b92e">ob_playback_start</a></div><div class="ttdeci">void ob_playback_start(ob_playback *playback, ob_playback_callback callback, void *user_data, ob_media_type type, ob_error **error)</div><div class="ttdoc">Start playback, with data returned from the callback. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_a541028e725b8e68a47a5f54f350d3343"><div class="ttname"><a href="RecordPlayback_8h.html#a541028e725b8e68a47a5f54f350d3343">ob_recorder_stop</a></div><div class="ttdeci">void ob_recorder_stop(ob_recorder *recorder, ob_error **error)</div><div class="ttdoc">Stop recording. </div></div>
<div class="ttc" id="ObTypes_8h_html_add32a1f63591525a2574ea6fe97abb28"><div class="ttname"><a href="ObTypes_8h.html#add32a1f63591525a2574ea6fe97abb28">ob_media_state_callback</a></div><div class="ttdeci">void(* ob_media_state_callback)(ob_media_state state, void *user_data)</div><div class="ttdoc">Callback for media status (recording and playback) </div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l01267">ObTypes.h:1267</a></div></div>
<div class="ttc" id="RecordPlayback_8h_html_a5c0300370dbece8861b1c15a54dfdaf7"><div class="ttname"><a href="RecordPlayback_8h.html#a5c0300370dbece8861b1c15a54dfdaf7">ob_create_recorder</a></div><div class="ttdeci">ob_recorder * ob_create_recorder(ob_error **error)</div><div class="ttdoc">Create a recorder for data recording. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_acec4fa0d97291a52024ecf6950343a7b"><div class="ttname"><a href="RecordPlayback_8h.html#acec4fa0d97291a52024ecf6950343a7b">ob_create_recorder_with_device</a></div><div class="ttdeci">ob_recorder * ob_create_recorder_with_device(ob_device *dev, ob_error **error)</div><div class="ttdoc">Create a recorder for data recording. </div></div>
<div class="ttc" id="RecordPlayback_8h_html_a0618cea4c4964f0f438610cb585453d4"><div class="ttname"><a href="RecordPlayback_8h.html#a0618cea4c4964f0f438610cb585453d4">ob_playback_get_device_info</a></div><div class="ttdeci">ob_device_info * ob_playback_get_device_info(ob_playback *playback, ob_error **error)</div><div class="ttdoc">Get the device information in the recording file. </div></div>
<div class="ttc" id="structob__error_html"><div class="ttname"><a href="structob__error.html">ob_error</a></div><div class="ttdoc">The error class exposed by the SDK, users can get detailed error information according to the error...</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00143">ObTypes.h:143</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Nov 24 2023 10:56:17 for OrbbecSDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
